/**
 * 作者: hxl
 * 日期: 2025-05-17 17:11:00
 * 备注: 联盟乱斗礼包表
 */
package com.motu.monstercity.server.game.commondata.union;

import io.vertx.core.json.JsonObject;

public class UnionScuffleGiftModel {
    protected int id; // 奖励id
    protected int groupId; // 活动分组
    protected int iapGiftId; // 礼包价格 (钻石礼包设为0)
    protected String cost; // 道具价格
    protected String reward; // 大礼奖励
    protected int limitCount; // 限购数量

    public UnionScuffleGiftModel() {
    }

    public UnionScuffleGiftModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        groupId = obj.containsKey("group_id") ? obj.getInteger("group_id") : 0;
        iapGiftId = obj.containsKey("iap_gift_id") ? obj.getInteger("iap_gift_id") : 0;
        cost = obj.containsKey("cost") ? obj.getString("cost") : "";
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
        limitCount = obj.containsKey("limit_count") ? obj.getInteger("limit_count") : 0;
    }

    public int getId() {
        return id;
    }

    public int getGroupId() {
        return groupId;
    }

    public int getIapGiftId() {
        return iapGiftId;
    }

    public String getCost() {
        return cost;
    }

    public String getReward() {
        return reward;
    }

    public int getLimitCount() {
        return limitCount;
    }

}
